﻿@model UcAsp.Models.Articles
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>内容管理</title>
    <script type="text/javascript">

        tinymce.init({
            selector: "textarea",
            plugins: [
                "advlist autolink lists link image charmap print preview anchor",
                "searchreplace visualblocks code fullscreen",
                "insertdatetime media table contextmenu paste hr upfile"
            ],
            toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent |link image upfile"

        });
        $(document).ready(function () {
            //$(".editadv").click(function () {
            //    $.post("/admin/GetAdvPostion", { AdvName: $(this).attr("data-id") }, function (dataresult) {
            //        $.facebox(dataresult, "ucaspfacebox");
            //    })
            //});
            $("#savearticle").click(function () {
               
               $.post("/ContentManager/SaveContent",
                 { ID: $("input[name='ID']").val(), Title: $("input[name='Title']").val(), Tag: $("input[name='Tag']").val(), Note2: $("input[name='Note2']").val(), Note3: $("input[name='Note3']").val(), Note4: $("input[name='Note4']").val(), Note5: $("input[name='Note5']").val(), Note6: $("input[name='Note6']").val(), Note7: tinyMCE.get("Note7").getContent(), Description: tinyMCE.get("Description").getContent(),  ArticleContent: tinyMCE.get("ArticleContent").getContent(), CategorieID:47, Rate: $("input[name='Rate']").val(), Note8: $("input[name='Note8']").val(), Note9: $("input[name='Note9']").val() },
                  function (dataBack) {
                      if (dataBack.Result) {
                          location.href = "/RenCaiManager/Jobs";
                                             }
                         });

            })
        })

</script>
</head>
<body>
    <form action="#" method="post">
    <div>
        <input name="ID" type="hidden" value="@Model.ID" />
        <p>
              <label>岗位名称</label>
              <input class="text-input medium-input" type="text" id="Title" name="Title" value="@Model.Title" />
        </p>

        <p>
              <label>工资</label>
              <input class="text-input medium-input" type="text" id="Note2" name="Note2" value="@Model.Note2" />
        </p>
        <p>
              <label>招聘人数</label>
              <input class="text-input medium-input" type="text" id="Note3" name="Note3" value="@Model.Note3" />
        </p>
        <p>
              <label>公司名称</label>
              <input class="text-input large-input" type="text" id="large-input" name="Tag" value="@Model.Tag" />
        </p>
          <p>
              <label>公司简介</label>
               <textarea class="text-input large-input"   id="Description" name="Description">@Model.Description</textarea>
              
        </p>
        <p>
              <label>学历要求</label>
              <input class="text-input large-input" type="text" id="Note4" name="Note4" value="@Model.Note4" />
        </p>
       >
        <p>
              <label>岗位要求</label>
            <textarea id="ArticleContent" name="ArticleContent" cols="20" rows="2">@Model.ArticleContent</textarea>
             
        </p>
        <p>
              <label>岗位职责</label>
              <textarea class="text-input large-input"  id="Note7" name="Note7" >@Model.Note7</textarea>
        </p>
         <p>
              <label>工作地点</label>
              <input class="text-input large-input" type="text" id="Note5" name="Note5" value="@Model.Note5" />
        </p>
        <p>
              <label>公司地址</label>
              <input class="text-input large-input" type="text" id="Note6" name="Note6" value="@Model.Note6" />
        </p>
       

        <p>
              <label>联系人</label>
              <input class="text-input large-input" type="text" id="Note8" name="Note8" value="@Model.Note8" /> 
        </p>
        <p>
              <label>公司电话</label>
              <input class="text-input large-input" type="text" id="Note9" name="Note9" value="@Model.Note9" /> 
        </p>
        <p>
              <label>排序</label>
              <input class="text-input medium-input" type="text" id="Rate" name="Rate" value="@Model.Rate" /> 越大排前面
        </p>
        <p> 
               <input class="button" id="savearticle" type="button" value=" 保存 " />
      </p>
    </div>
        </form>
</body>
</html>
